﻿@model OnlineMealOrdering.Areas.WebSiteManage.Models.AccountModel
@{
    ViewBag.Title = "用户信息";
    Layout = "~/Areas/WebSiteManage/Views/Shared/_Layout.cshtml";
}
<div class="row-fluid sortable ui-sortable">
    <div class="box span12">
        <div data-original-title="" class="box-header">
            <h2><i class="icon-edit"></i><span class="break"></span>用户编辑</h2>
            <div class="box-icon">
                <a class="btn-setting" href="#"><i class="icon-wrench"></i></a>
                <a class="btn-minimize" href="#"><i class="icon-chevron-up"></i></a>
                <a class="btn-close" href="#"><i class="icon-remove"></i></a>
            </div>
        </div>
        <div class="box-content" id="content">
            @using (Ajax.BeginForm("SettingUser", "", new AjaxOptions { HttpMethod = "POST" }, new { @class = "form-horizontal" }))
            {
                <fieldset>
                    <div class="control-group" id="userId" style="display: none;">
                        @Html.LabelFor(a => a.Id, new { @class = "control-label" })
                        <div class="controls">
                            <span class="help-inline">@Model.Id</span>
                            @Html.HiddenFor(a => a.Id)
                        </div>
                    </div>
                    <div class="control-group">
                        @Html.LabelFor(a => a.FaceImage, new { @class = "control-label" })
                        <div class="controls">
                            <img src="@Model.FaceImage" class="img-circle">
                        </div>
                    </div>
                    <div class="control-group">
                        @Html.LabelFor(a => a.Name, new { @class = "control-label" })
                        <div class="controls">
                            <span class="help-inline">@Model.Name</span>
                        </div>
                    </div>
                    <div class="control-group">
                        @Html.LabelFor(a => a.UserCode, new { @class = "control-label" })
                        <div class="controls">
                            <span class="help-inline">@Model.UserCode</span>
                        </div>
                    </div>
                    <div class="control-group">
                        @Html.LabelFor(a => a.Area, new { @class = "control-label" })
                        <div class="controls">
                            <span class="help-inline">@Model.Area</span>
                        </div>
                    </div>
                    <div class="control-group">
                        @Html.LabelFor(a => a.Address, new { @class = "control-label" })
                        <div class="controls">
                            <span class="help-inline">@Model.Address</span>
                        </div>
                    </div>
                    <div class="control-group">
                        @Html.LabelFor(a => a.AccountType, new { @class = "control-label" })
                        <div class="controls">
                            <span class="help-inline">@Model.AccountType</span>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">@Html.LabelFor(a => a.StrRoles, new { @class = "control-label" })</label>
                        <div class="controls">
                            @Html.DropDownListFor(a => a.TempStrRoles, Model.AllUserRoles as IEnumerable<SelectListItem>)
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">@Html.LabelFor(a => a.UserStatus, new { @class = "control-label" })</label>
                        <div class="controls">
                            @Html.DropDownListFor(a=>a.TempUserStatus,Model.AllUserStatus as IEnumerable<SelectListItem>)
                        </div>
                    </div>
                    <div class="form-actions">
                        <button class="btn btn-primary" data-loading-text="处理中..." type="submit">保 存</button>
                        <a class="btn " href="@Url.Action("UserList")">取 消</a>
                    </div>
                </fieldset>          
            }
        </div>
    </div>

</div>

